<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"  
  "http://www.w3.org/TR/html4/loose.dtd">  
<html > 
<head><title>Disparity map to elevation map</title> 
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 
<meta name="generator" content="TeX4ht (http://www.cse.ohio-state.edu/~gurari/TeX4ht/)"> 
<meta name="originator" content="TeX4ht (http://www.cse.ohio-state.edu/~gurari/TeX4ht/)"> 
<!-- html,4,subsubsections+ --> 
<meta name="src" content="CookBook.tex"> 
<meta name="date" content="2012-10-02 23:16:00"> 
<link rel="stylesheet" type="text/css" href="CookBook.css"> 
</head><body 
>
<!--l. 3525--><div class="crosslinks"><p class="noindent">[<a 
href="CookBooksu74.html" >next</a>] [<a 
href="CookBooksu72.html" >prev</a>] [<a 
href="CookBooksu72.html#tailCookBooksu72.html" >prev-tail</a>] [<a 
href="#tailCookBooksu73.html">tail</a>] [<a 
href="CookBookse17.html#CookBooksu73.html" >up</a>] </p></div>
<h4 class="subsectionHead"><span class="titlemark">4.7.2    </span> <a 
 id="x99-4870004.7.2"></a>Disparity map to elevation map</h4>
<!--l. 3526--><p class="noindent" >Projects a disparity map into a regular elevation map
<h5 class="subsubsectionHead"><a 
 id="x99-4880004.7.2"></a>Detailed description</h5>
<!--l. 3528--><p class="noindent" >This application uses a disparity map computed from a stereo image pair to produce an elevation map on the
ground area covered by the stereo pair. The needed inputs are : the disparity map, the stereo pair (in original
geometry) and the epipolar deformation grids. These grids have to link the original geometry (stereo pair)
and the epipolar geometry (disparity map).
<h5 class="subsubsectionHead"><a 
 id="x99-4890004.7.2"></a>Parameters</h5>
<!--l. 3530--><p class="noindent" >This section describes in details the parameters available for this application. Table&#x00A0;<a 
href="#x99-48900139">4.39<!--tex4ht:ref: DisparityMapToElevationMap_param_table --></a>, page&#x00A0;<a 
href="#x99-48900139">454<!--tex4ht:ref: DisparityMapToElevationMap_param_table --></a>
presents a summary of these parameters and the parameters keys to be used in command-line and
programming languages. Application key is <span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-">DisparityMapToElevationMap</span></span></span>. <div class="table">
                                                                            
                                                                            
<!--l. 3531--><p class="noindent" ><a 
 id="x99-48900139"></a><hr class="float"><div class="float" 
>
                                                                            
                                                                            
<div class="center" 
>
<!--l. 3532--><p class="noindent" >
<div class="tabular"> <table id="TBL-39" class="tabular" 
cellspacing="0" cellpadding="0" rules="groups" 
><colgroup id="TBL-39-1g"><col 
id="TBL-39-1"></colgroup><colgroup id="TBL-39-2g"><col 
id="TBL-39-2"></colgroup><colgroup id="TBL-39-3g"><col 
id="TBL-39-3"></colgroup><tr 
class="hline"><td><hr></td><td><hr></td><td><hr></td></tr><tr  
 style="vertical-align:baseline;" id="TBL-39-1-"><td  style="white-space:wrap; text-align:left;" id="TBL-39-1-1"  
class="td11"><!--l. 3536--><p class="noindent" ><span 
class="ptmr7t-x-x-90">Parameter key</span>                                                </td><td  style="white-space:nowrap; text-align:left;" id="TBL-39-1-2"  
class="td11"><span 
class="ptmr7t-x-x-90">Parameter type </span></td><td  style="white-space:wrap; text-align:left;" id="TBL-39-1-3"  
class="td11"><!--l. 3536--><p class="noindent" ><span 
class="ptmr7t-x-x-90">Parameter description</span>                                    </td>
</tr><tr 
class="hline"><td><hr></td><td><hr></td><td><hr></td></tr><tr  
 style="vertical-align:baseline;" id="TBL-39-2-"><td  style="white-space:wrap; text-align:left;" id="TBL-39-2-1"  
class="td11"><!--l. 3538--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-x-x-90">io</span></span></span>                                 </td><td  style="white-space:nowrap; text-align:left;" id="TBL-39-2-2"  
class="td11"><span 
class="ptmr7t-x-x-90">Group               </span></td><td  style="white-space:wrap; text-align:left;" id="TBL-39-2-3"  
class="td11"><!--l. 3538--><p class="noindent" ><span 
class="ptmr7t-x-x-90">Input and output data</span>                                     </td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-39-3-"><td  style="white-space:wrap; text-align:left;" id="TBL-39-3-1"  
class="td11"><!--l. 3539--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-x-x-90">io.in</span></span></span>                              </td><td  style="white-space:nowrap; text-align:left;" id="TBL-39-3-2"  
class="td11"><span 
class="ptmr7t-x-x-90">Input image      </span></td><td  style="white-space:wrap; text-align:left;" id="TBL-39-3-3"  
class="td11"><!--l. 3539--><p class="noindent" ><span 
class="ptmr7t-x-x-90">Input disparity map</span>                                       </td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-39-4-"><td  style="white-space:wrap; text-align:left;" id="TBL-39-4-1"  
class="td11"><!--l. 3540--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-x-x-90">io.left</span></span></span>                            </td><td  style="white-space:nowrap; text-align:left;" id="TBL-39-4-2"  
class="td11"><span 
class="ptmr7t-x-x-90">Input image      </span></td><td  style="white-space:wrap; text-align:left;" id="TBL-39-4-3"  
class="td11"><!--l. 3540--><p class="noindent" ><span 
class="ptmr7t-x-x-90">Left sensor image</span>                                          </td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-39-5-"><td  style="white-space:wrap; text-align:left;" id="TBL-39-5-1"  
class="td11"><!--l. 3541--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-x-x-90">io.right</span></span></span>                           </td><td  style="white-space:nowrap; text-align:left;" id="TBL-39-5-2"  
class="td11"><span 
class="ptmr7t-x-x-90">Input image      </span></td><td  style="white-space:wrap; text-align:left;" id="TBL-39-5-3"  
class="td11"><!--l. 3541--><p class="noindent" ><span 
class="ptmr7t-x-x-90">Right sensor image</span>                                        </td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-39-6-"><td  style="white-space:wrap; text-align:left;" id="TBL-39-6-1"  
class="td11"><!--l. 3542--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-x-x-90">io.lgrid</span></span></span>                           </td><td  style="white-space:nowrap; text-align:left;" id="TBL-39-6-2"  
class="td11"><span 
class="ptmr7t-x-x-90">Input image      </span></td><td  style="white-space:wrap; text-align:left;" id="TBL-39-6-3"  
class="td11"><!--l. 3542--><p class="noindent" ><span 
class="ptmr7t-x-x-90">Left Grid</span>                                                        </td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-39-7-"><td  style="white-space:wrap; text-align:left;" id="TBL-39-7-1"  
class="td11"><!--l. 3543--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-x-x-90">io.rgrid</span></span></span>                           </td><td  style="white-space:nowrap; text-align:left;" id="TBL-39-7-2"  
class="td11"><span 
class="ptmr7t-x-x-90">Input image      </span></td><td  style="white-space:wrap; text-align:left;" id="TBL-39-7-3"  
class="td11"><!--l. 3543--><p class="noindent" ><span 
class="ptmr7t-x-x-90">Right Grid</span>                                                     </td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-39-8-"><td  style="white-space:wrap; text-align:left;" id="TBL-39-8-1"  
class="td11"><!--l. 3544--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-x-x-90">io.out</span></span></span>                             </td><td  style="white-space:nowrap; text-align:left;" id="TBL-39-8-2"  
class="td11"><span 
class="ptmr7t-x-x-90">Output image   </span></td><td  style="white-space:wrap; text-align:left;" id="TBL-39-8-3"  
class="td11"><!--l. 3544--><p class="noindent" ><span 
class="ptmr7t-x-x-90">Output elevation map</span>                                    </td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-39-9-"><td  style="white-space:wrap; text-align:left;" id="TBL-39-9-1"  
class="td11"><!--l. 3545--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-x-x-90">io.mask</span></span></span>                            </td><td  style="white-space:nowrap; text-align:left;" id="TBL-39-9-2"  
class="td11"><span 
class="ptmr7t-x-x-90">Input image      </span></td><td  style="white-space:wrap; text-align:left;" id="TBL-39-9-3"  
class="td11"><!--l. 3545--><p class="noindent" ><span 
class="ptmr7t-x-x-90">Disparity mask</span>                                              </td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-39-10-"><td  style="white-space:wrap; text-align:left;" id="TBL-39-10-1"  
class="td11"><!--l. 3546--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-x-x-90">step</span></span></span>                               </td><td  style="white-space:nowrap; text-align:left;" id="TBL-39-10-2"  
class="td11"><span 
class="ptmr7t-x-x-90">Float                 </span></td><td  style="white-space:wrap; text-align:left;" id="TBL-39-10-3"  
class="td11"><!--l. 3546--><p class="noindent" ><span 
class="ptmr7t-x-x-90">DEM step</span>                                                      </td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-39-11-"><td  style="white-space:wrap; text-align:left;" id="TBL-39-11-1"  
class="td11"><!--l. 3547--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-x-x-90">hmin</span></span></span>                               </td><td  style="white-space:nowrap; text-align:left;" id="TBL-39-11-2"  
class="td11"><span 
class="ptmr7t-x-x-90">Float                 </span></td><td  style="white-space:wrap; text-align:left;" id="TBL-39-11-3"  
class="td11"><!--l. 3547--><p class="noindent" ><span 
class="ptmr7t-x-x-90">Minimum elevation expected</span>                        </td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-39-12-"><td  style="white-space:wrap; text-align:left;" id="TBL-39-12-1"  
class="td11"><!--l. 3548--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-x-x-90">hmax</span></span></span>                               </td><td  style="white-space:nowrap; text-align:left;" id="TBL-39-12-2"  
class="td11"><span 
class="ptmr7t-x-x-90">Float                 </span></td><td  style="white-space:wrap; text-align:left;" id="TBL-39-12-3"  
class="td11"><!--l. 3548--><p class="noindent" ><span 
class="ptmr7t-x-x-90">Maximum elevation expected</span>                       </td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-39-13-"><td  style="white-space:wrap; text-align:left;" id="TBL-39-13-1"  
class="td11"><!--l. 3549--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-x-x-90">elev</span></span></span>                               </td><td  style="white-space:nowrap; text-align:left;" id="TBL-39-13-2"  
class="td11"><span 
class="ptmr7t-x-x-90">Choices            </span></td><td  style="white-space:wrap; text-align:left;" id="TBL-39-13-3"  
class="td11"><!--l. 3549--><p class="noindent" ><span 
class="ptmr7t-x-x-90">Elevation management</span>                                  </td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-39-14-"><td  style="white-space:wrap; text-align:left;" id="TBL-39-14-1"  
class="td11"><!--l. 3550--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-x-x-90">elev</span><span 
class="pcrr7tn-x-x-90">&#x00A0;dem</span></span></span>                           </td><td  style="white-space:nowrap; text-align:left;" id="TBL-39-14-2"  
class="td11"><span 
class="ptmri7t-x-x-90">Choice              </span></td><td  style="white-space:wrap; text-align:left;" id="TBL-39-14-3"  
class="td11"><!--l. 3550--><p class="noindent" ><span 
class="ptmr7t-x-x-90">DEM directory</span>                                              </td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-39-15-"><td  style="white-space:wrap; text-align:left;" id="TBL-39-15-1"  
class="td11"><!--l. 3551--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-x-x-90">elev</span><span 
class="pcrr7tn-x-x-90">&#x00A0;average</span></span></span>                       </td><td  style="white-space:nowrap; text-align:left;" id="TBL-39-15-2"  
class="td11"><span 
class="ptmri7t-x-x-90">Choice              </span></td><td  style="white-space:wrap; text-align:left;" id="TBL-39-15-3"  
class="td11"><!--l. 3551--><p class="noindent" ><span 
class="ptmr7t-x-x-90">Average Elevation</span>                                         </td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-39-16-"><td  style="white-space:wrap; text-align:left;" id="TBL-39-16-1"  
class="td11"><!--l. 3552--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-x-x-90">elev.dem.path</span></span></span>                      </td><td  style="white-space:nowrap; text-align:left;" id="TBL-39-16-2"  
class="td11"><span 
class="ptmr7t-x-x-90">Directory          </span></td><td  style="white-space:wrap; text-align:left;" id="TBL-39-16-3"  
class="td11"><!--l. 3552--><p class="noindent" ><span 
class="ptmr7t-x-x-90">DEM directory</span>                                              </td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-39-17-"><td  style="white-space:wrap; text-align:left;" id="TBL-39-17-1"  
class="td11"><!--l. 3553--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-x-x-90">elev.dem.geoid</span></span></span>                     </td><td  style="white-space:nowrap; text-align:left;" id="TBL-39-17-2"  
class="td11"><span 
class="ptmr7t-x-x-90">Input File name</span></td><td  style="white-space:wrap; text-align:left;" id="TBL-39-17-3"  
class="td11"><!--l. 3553--><p class="noindent" ><span 
class="ptmr7t-x-x-90">Geoid File</span>                                                      </td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-39-18-"><td  style="white-space:wrap; text-align:left;" id="TBL-39-18-1"  
class="td11"><!--l. 3554--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-x-x-90">elev.average.value</span></span></span>                 </td><td  style="white-space:nowrap; text-align:left;" id="TBL-39-18-2"  
class="td11"><span 
class="ptmr7t-x-x-90">Float                 </span></td><td  style="white-space:wrap; text-align:left;" id="TBL-39-18-3"  
class="td11"><!--l. 3554--><p class="noindent" ><span 
class="ptmr7t-x-x-90">Average Elevation</span>                                         </td>
</tr><tr  
 style="vertical-align:baseline;" id="TBL-39-19-"><td  style="white-space:wrap; text-align:left;" id="TBL-39-19-1"  
class="td11"><!--l. 3555--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span 
class="pcrr7tn-x-x-90">ram</span></span></span>                                </td><td  style="white-space:nowrap; text-align:left;" id="TBL-39-19-2"  
class="td11"><span 
class="ptmr7t-x-x-90">Int                     </span></td><td  style="white-space:wrap; text-align:left;" id="TBL-39-19-3"  
class="td11"><!--l. 3555--><p class="noindent" ><span 
class="ptmr7t-x-x-90">Available RAM (Mb)</span>                                    </td>
</tr><tr 
class="hline"><td><hr></td><td><hr></td><td><hr></td></tr><tr  
 style="vertical-align:baseline;" id="TBL-39-20-"><td  style="white-space:wrap; text-align:left;" id="TBL-39-20-1"  
class="td11">                                   </td></tr></table></div>
</div>
<br /> <div class="caption" 
><span class="id">Table&#x00A0;4.39: </span><span  
class="content">Parameters table for Disparity map to elevation map.</span></div><!--tex4ht:label?: x99-48900139 -->
                                                                            
                                                                            
</div><hr class="endfloat" />
</div>
<!--l. 3561--><p class="noindent" ><span class="paragraphHead"><a 
 id="x99-4900004.7.2"></a><span 
class="ptmb7t-">Input and output data</span></span>
This group of parameters allows to set the input and output images and grids.
     <ul class="itemize1">
     <li class="itemize"><span 
class="ptmb7t-">Input disparity map:  </span>The input disparity map (horizontal disparity in first band, vertical in
     second)
     </li>
     <li class="itemize"><span 
class="ptmb7t-">Left sensor image:  </span>Left image in original (sensor) geometry
     </li>
     <li class="itemize"><span 
class="ptmb7t-">Right sensor image:  </span>Right image in original (sensor) geometry
     </li>
     <li class="itemize"><span 
class="ptmb7t-">Left Grid:  </span>Left epipolar grid (deformation grid between sensor et disparity spaces)
     </li>
     <li class="itemize"><span 
class="ptmb7t-">Right Grid:  </span>Right epipolar grid (deformation grid between sensor et disparity spaces)
     </li>
     <li class="itemize"><span 
class="ptmb7t-">Output elevation map:  </span>Output elevation map in ground projection
     </li>
     <li class="itemize"><span 
class="ptmb7t-">Disparity mask:  </span>Masked disparity cells won&#8217;t be projected
     </li></ul>
<!--l. 3579--><p class="noindent" ><span class="paragraphHead"><a 
 id="x99-4910004.7.2"></a><span 
class="ptmb7t-">DEM step</span></span>
Spacing of the output elevation map (in meters)
<!--l. 3581--><p class="noindent" ><span class="paragraphHead"><a 
 id="x99-4920004.7.2"></a><span 
class="ptmb7t-">Minimum elevation expected</span></span>
Minimum elevation expected (in meters)
<!--l. 3583--><p class="noindent" ><span class="paragraphHead"><a 
 id="x99-4930004.7.2"></a><span 
class="ptmb7t-">Maximum elevation expected</span></span>
Maximum elevation expected (in meters)
                                                                            
                                                                            
<!--l. 3585--><p class="noindent" ><span class="paragraphHead"><a 
 id="x99-4940004.7.2"></a><span 
class="ptmb7t-">Elevation management</span></span>
This group of parameters allows to manage elevation values. Supported formats are SRTM, DTED or any
geotiff processed by the DEM import application Available choices are:
     <ul class="itemize1">
     <li class="itemize"><span 
class="ptmb7t-">DEM directory</span>
         <ul class="itemize2">
         <li class="itemize"><span 
class="ptmb7t-">DEM  directory:    </span>This  parameter  allows  to  select  a  directory  containing  Digital
         Elevation Model tiles
         </li>
         <li class="itemize"><span 
class="ptmb7t-">Geoid File:  </span>Use a geoid grid to get the height above the ellipsoid used</li></ul>
     </li>
     <li class="itemize"><span 
class="ptmb7t-">Average Elevation</span>
         <ul class="itemize2">
         <li class="itemize"><span 
class="ptmb7t-">Average Elevation:  </span>This parameter allows to pick up an average elevation for all the
         points of the image.</li></ul>
     </li></ul>
<!--l. 3597--><p class="noindent" ><span class="paragraphHead"><a 
 id="x99-4950004.7.2"></a><span 
class="ptmb7t-">Available RAM (Mb)</span></span>
Available memory for processing (in MB)
<!--l. 3600--><p class="noindent" >
<h5 class="subsubsectionHead"><a 
 id="x99-4960004.7.2"></a>Example</h5>
<!--l. 3601--><p class="noindent" >To run this example in command-line, use the following: <!--l. 3602-->
<div class="lstlisting" id="listing-80"><span class="label"><a 
 id="x99-496001r1"></a></span><span 
class="pcrr7tn-x-x-70">otbcli_DisparityMapToElevationMap</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><span 
class="pcrr7tn-x-x-70">-</span><span 
class="pcrr7tn-x-x-70">io</span><span 
class="pcrr7tn-x-x-70">.</span><span 
class="pcrb7t-x-x-70">in</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><span 
class="pcrr7tn-x-x-70">disparity</span><span 
class="pcrr7tn-x-x-70">.</span><span 
class="pcrr7tn-x-x-70">tif</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><span 
class="pcrr7tn-x-x-70">-</span><span 
class="pcrr7tn-x-x-70">io</span><span 
class="pcrr7tn-x-x-70">.</span><span 
class="pcrr7tn-x-x-70">left</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><span 
class="pcrr7tn-x-x-70">sensor_left</span><span 
class="pcrr7tn-x-x-70">.</span><span 
class="pcrr7tn-x-x-70">tif</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><span 
class="pcrr7tn-x-x-70">-</span><span 
class="pcrr7tn-x-x-70">io</span><span 
class="pcrr7tn-x-x-70">.</span><span 
class="pcrr7tn-x-x-70">right</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><span 
class="pcrr7tn-x-x-70">sensor_right</span><span 
class="pcrr7tn-x-x-70">.</span><span 
class="pcrr7tn-x-x-70">tif</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><span 
class="pcrr7tn-x-x-70">-</span><span 
class="pcrr7tn-x-x-70">io</span><span 
class="pcrr7tn-x-x-70">.</span><span 
class="pcrr7tn-x-x-70">lgrid</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><span 
class="pcrr7tn-x-x-70">grid_epi_left</span><span 
class="pcrr7tn-x-x-70">.</span><span 
class="pcrr7tn-x-x-70">tif</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><span 
class="pcrr7tn-x-x-70">-</span><span 
class="pcrr7tn-x-x-70">io</span><span 
class="pcrr7tn-x-x-70">.</span><span 
class="pcrr7tn-x-x-70">rgrid</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><span 
class="pcrr7tn-x-x-70">grid_epi_right</span><span 
class="pcrr7tn-x-x-70">.</span><span 
class="pcrr7tn-x-x-70">tif</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><span 
class="pcrr7tn-x-x-70">-</span><span 
class="pcrr7tn-x-x-70">io</span><span 
class="pcrr7tn-x-x-70">.</span><span 
class="pcrr7tn-x-x-70">out</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><span 
class="pcrr7tn-x-x-70">dem</span><span 
class="pcrr7tn-x-x-70">.</span><span 
class="pcrr7tn-x-x-70">tif</span>
</div>
<!--l. 3605--><p class="noindent" >To run this example from Python, use the following code snippet: <!--l. 3606-->
<div class="lstlisting" id="listing-81"><span class="label"><a 
 id="x99-496002r1"></a></span><span 
class="pcrro7t-x-x-70">#</span><span 
class="pcrro7t-x-x-70">!/</span><span 
class="pcrro7t-x-x-70">usr</span><span 
class="pcrro7t-x-x-70">/</span><span 
class="pcrro7t-x-x-70">bin</span><span 
class="pcrro7t-x-x-70">/</span><span 
class="pcrro7t-x-x-70">python</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><br /><span class="label"><a 
 id="x99-496003r2"></a></span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><br /><span class="label"><a 
 id="x99-496004r3"></a></span><span 
class="pcrro7t-x-x-70">#</span><span 
class="pcrro7t-x-x-70">&#x00A0;</span><span 
class="pcrro7t-x-x-70">Import</span><span 
class="pcrro7t-x-x-70">&#x00A0;</span><span 
class="pcrro7t-x-x-70">the</span><span 
class="pcrro7t-x-x-70">&#x00A0;</span><span 
class="pcrro7t-x-x-70">otb</span><span 
class="pcrro7t-x-x-70">&#x00A0;</span><span 
class="pcrro7t-x-x-70">applications</span><span 
class="pcrro7t-x-x-70">&#x00A0;</span><span 
class="pcrro7t-x-x-70">package</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><br /><span class="label"><a 
 id="x99-496005r4"></a></span><span 
class="pcrb7t-x-x-70">import</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><span 
class="pcrr7tn-x-x-70">otbApplication</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><br /><span class="label"><a 
 id="x99-496006r5"></a></span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><br /><span class="label"><a 
 id="x99-496007r6"></a></span><span 
class="pcrro7t-x-x-70">#</span><span 
class="pcrro7t-x-x-70">&#x00A0;</span><span 
class="pcrro7t-x-x-70">The</span><span 
class="pcrro7t-x-x-70">&#x00A0;</span><span 
class="pcrro7t-x-x-70">following</span><span 
class="pcrro7t-x-x-70">&#x00A0;</span><span 
class="pcrro7t-x-x-70">line</span><span 
class="pcrro7t-x-x-70">&#x00A0;</span><span 
class="pcrro7t-x-x-70">creates</span><span 
class="pcrro7t-x-x-70">&#x00A0;</span><span 
class="pcrro7t-x-x-70">an</span><span 
class="pcrro7t-x-x-70">&#x00A0;</span><span 
class="pcrro7t-x-x-70">instance</span><span 
class="pcrro7t-x-x-70">&#x00A0;</span><span 
class="pcrro7t-x-x-70">of</span><span 
class="pcrro7t-x-x-70">&#x00A0;</span><span 
class="pcrro7t-x-x-70">the</span><span 
class="pcrro7t-x-x-70">&#x00A0;</span><span 
class="pcrro7t-x-x-70">DisparityMapToElevationMap</span><span 
class="pcrro7t-x-x-70">&#x00A0;</span><span 
class="pcrro7t-x-x-70">application</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><br /><span class="label"><a 
 id="x99-496008r7"></a></span><span 
class="pcrr7tn-x-x-70">DisparityMapToElevationMap</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><span 
class="pcrr7tn-x-x-70">=</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><span 
class="pcrr7tn-x-x-70">otbApplication</span><span 
class="pcrr7tn-x-x-70">.</span><span 
class="pcrr7tn-x-x-70">Registry</span><span 
class="pcrr7tn-x-x-70">.</span><span 
class="pcrr7tn-x-x-70">CreateApplication</span><span 
class="pcrr7tn-x-x-70">(</span><span 
class="pcrr7tn-x-x-70">"</span><span 
class="pcrr7tn-x-x-70">DisparityMapToElevationMap</span><span 
class="pcrr7tn-x-x-70">"</span><span 
class="pcrr7tn-x-x-70">)</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><br /><span class="label"><a 
 id="x99-496009r8"></a></span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><br /><span class="label"><a 
 id="x99-496010r9"></a></span><span 
class="pcrro7t-x-x-70">#</span><span 
class="pcrro7t-x-x-70">&#x00A0;</span><span 
class="pcrro7t-x-x-70">The</span><span 
class="pcrro7t-x-x-70">&#x00A0;</span><span 
class="pcrro7t-x-x-70">following</span><span 
class="pcrro7t-x-x-70">&#x00A0;</span><span 
class="pcrro7t-x-x-70">lines</span><span 
class="pcrro7t-x-x-70">&#x00A0;</span><span 
class="pcrro7t-x-x-70">set</span><span 
class="pcrro7t-x-x-70">&#x00A0;</span><span 
class="pcrro7t-x-x-70">all</span><span 
class="pcrro7t-x-x-70">&#x00A0;</span><span 
class="pcrro7t-x-x-70">the</span><span 
class="pcrro7t-x-x-70">&#x00A0;</span><span 
class="pcrro7t-x-x-70">application</span><span 
class="pcrro7t-x-x-70">&#x00A0;</span><span 
class="pcrro7t-x-x-70">parameters</span><span 
class="pcrro7t-x-x-70">:</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><br /><span class="label"><a 
 id="x99-496011r10"></a></span><span 
class="pcrr7tn-x-x-70">DisparityMapToElevationMap</span><span 
class="pcrr7tn-x-x-70">.</span><span 
class="pcrr7tn-x-x-70">SetParameterString</span><span 
class="pcrr7tn-x-x-70">(</span><span 
class="pcrr7tn-x-x-70">"</span><span 
class="pcrr7tn-x-x-70">io</span><span 
class="pcrr7tn-x-x-70">.</span><span 
class="pcrr7tn-x-x-70">in</span><span 
class="pcrr7tn-x-x-70">"</span><span 
class="pcrr7tn-x-x-70">,</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><span 
class="pcrr7tn-x-x-70">"</span><span 
class="pcrr7tn-x-x-70">disparity</span><span 
class="pcrr7tn-x-x-70">.</span><span 
class="pcrr7tn-x-x-70">tif</span><span 
class="pcrr7tn-x-x-70">"</span><span 
class="pcrr7tn-x-x-70">)</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><br /><span class="label"><a 
 id="x99-496012r11"></a></span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><br /><span class="label"><a 
 id="x99-496013r12"></a></span><span 
class="pcrr7tn-x-x-70">DisparityMapToElevationMap</span><span 
class="pcrr7tn-x-x-70">.</span><span 
class="pcrr7tn-x-x-70">SetParameterString</span><span 
class="pcrr7tn-x-x-70">(</span><span 
class="pcrr7tn-x-x-70">"</span><span 
class="pcrr7tn-x-x-70">io</span><span 
class="pcrr7tn-x-x-70">.</span><span 
class="pcrr7tn-x-x-70">left</span><span 
class="pcrr7tn-x-x-70">"</span><span 
class="pcrr7tn-x-x-70">,</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><span 
class="pcrr7tn-x-x-70">"</span><span 
class="pcrr7tn-x-x-70">sensor_left</span><span 
class="pcrr7tn-x-x-70">.</span><span 
class="pcrr7tn-x-x-70">tif</span><span 
class="pcrr7tn-x-x-70">"</span><span 
class="pcrr7tn-x-x-70">)</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><br /><span class="label"><a 
 id="x99-496014r13"></a></span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><br /><span class="label"><a 
 id="x99-496015r14"></a></span><span 
class="pcrr7tn-x-x-70">DisparityMapToElevationMap</span><span 
class="pcrr7tn-x-x-70">.</span><span 
class="pcrr7tn-x-x-70">SetParameterString</span><span 
class="pcrr7tn-x-x-70">(</span><span 
class="pcrr7tn-x-x-70">"</span><span 
class="pcrr7tn-x-x-70">io</span><span 
class="pcrr7tn-x-x-70">.</span><span 
class="pcrr7tn-x-x-70">right</span><span 
class="pcrr7tn-x-x-70">"</span><span 
class="pcrr7tn-x-x-70">,</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><span 
class="pcrr7tn-x-x-70">"</span><span 
class="pcrr7tn-x-x-70">sensor_right</span><span 
class="pcrr7tn-x-x-70">.</span><span 
class="pcrr7tn-x-x-70">tif</span><span 
class="pcrr7tn-x-x-70">"</span><span 
class="pcrr7tn-x-x-70">)</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><br /><span class="label"><a 
 id="x99-496016r15"></a></span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><br /><span class="label"><a 
 id="x99-496017r16"></a></span><span 
class="pcrr7tn-x-x-70">DisparityMapToElevationMap</span><span 
class="pcrr7tn-x-x-70">.</span><span 
class="pcrr7tn-x-x-70">SetParameterString</span><span 
class="pcrr7tn-x-x-70">(</span><span 
class="pcrr7tn-x-x-70">"</span><span 
class="pcrr7tn-x-x-70">io</span><span 
class="pcrr7tn-x-x-70">.</span><span 
class="pcrr7tn-x-x-70">lgrid</span><span 
class="pcrr7tn-x-x-70">"</span><span 
class="pcrr7tn-x-x-70">,</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><span 
class="pcrr7tn-x-x-70">"</span><span 
class="pcrr7tn-x-x-70">grid_epi_left</span><span 
class="pcrr7tn-x-x-70">.</span><span 
class="pcrr7tn-x-x-70">tif</span><span 
class="pcrr7tn-x-x-70">"</span><span 
class="pcrr7tn-x-x-70">)</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><br /><span class="label"><a 
 id="x99-496018r17"></a></span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><br /><span class="label"><a 
 id="x99-496019r18"></a></span><span 
class="pcrr7tn-x-x-70">DisparityMapToElevationMap</span><span 
class="pcrr7tn-x-x-70">.</span><span 
class="pcrr7tn-x-x-70">SetParameterString</span><span 
class="pcrr7tn-x-x-70">(</span><span 
class="pcrr7tn-x-x-70">"</span><span 
class="pcrr7tn-x-x-70">io</span><span 
class="pcrr7tn-x-x-70">.</span><span 
class="pcrr7tn-x-x-70">rgrid</span><span 
class="pcrr7tn-x-x-70">"</span><span 
class="pcrr7tn-x-x-70">,</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><span 
class="pcrr7tn-x-x-70">"</span><span 
class="pcrr7tn-x-x-70">grid_epi_right</span><span 
class="pcrr7tn-x-x-70">.</span><span 
class="pcrr7tn-x-x-70">tif</span><span 
class="pcrr7tn-x-x-70">"</span><span 
class="pcrr7tn-x-x-70">)</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><br /><span class="label"><a 
 id="x99-496020r19"></a></span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><br /><span class="label"><a 
 id="x99-496021r20"></a></span><span 
class="pcrr7tn-x-x-70">DisparityMapToElevationMap</span><span 
class="pcrr7tn-x-x-70">.</span><span 
class="pcrr7tn-x-x-70">SetParameterString</span><span 
class="pcrr7tn-x-x-70">(</span><span 
class="pcrr7tn-x-x-70">"</span><span 
class="pcrr7tn-x-x-70">io</span><span 
class="pcrr7tn-x-x-70">.</span><span 
class="pcrr7tn-x-x-70">out</span><span 
class="pcrr7tn-x-x-70">"</span><span 
class="pcrr7tn-x-x-70">,</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><span 
class="pcrr7tn-x-x-70">"</span><span 
class="pcrr7tn-x-x-70">dem</span><span 
class="pcrr7tn-x-x-70">.</span><span 
class="pcrr7tn-x-x-70">tif</span><span 
class="pcrr7tn-x-x-70">"</span><span 
class="pcrr7tn-x-x-70">)</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><br /><span class="label"><a 
 id="x99-496022r21"></a></span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><br /><span class="label"><a 
 id="x99-496023r22"></a></span><span 
class="pcrro7t-x-x-70">#</span><span 
class="pcrro7t-x-x-70">&#x00A0;</span><span 
class="pcrro7t-x-x-70">The</span><span 
class="pcrro7t-x-x-70">&#x00A0;</span><span 
class="pcrro7t-x-x-70">following</span><span 
class="pcrro7t-x-x-70">&#x00A0;</span><span 
class="pcrro7t-x-x-70">line</span><span 
class="pcrro7t-x-x-70">&#x00A0;</span><span 
class="pcrro7t-x-x-70">execute</span><span 
class="pcrro7t-x-x-70">&#x00A0;</span><span 
class="pcrro7t-x-x-70">the</span><span 
class="pcrro7t-x-x-70">&#x00A0;</span><span 
class="pcrro7t-x-x-70">application</span><span 
class="pcrr7tn-x-x-70">&#x00A0;</span><br /><span class="label"><a 
 id="x99-496024r23"></a></span><span 
class="pcrr7tn-x-x-70">DisparityMapToElevationMap</span><span 
class="pcrr7tn-x-x-70">.</span><span 
class="pcrr7tn-x-x-70">ExecuteAndWriteOutput</span><span 
class="pcrr7tn-x-x-70">()</span>
</div>
                                                                            
                                                                            
<!--l. 3631--><p class="noindent" >
<h5 class="subsubsectionHead"><a 
 id="x99-4970004.7.2"></a>Limitations</h5>
<!--l. 3632--><p class="noindent" >None
<h5 class="subsubsectionHead"><a 
 id="x99-4980004.7.2"></a>Authors</h5>
<!--l. 3634--><p class="noindent" >This application has been written by OTB-Team.
<h5 class="subsubsectionHead"><a 
 id="x99-4990004.7.2"></a>See also</h5>
<!--l. 3636--><p class="noindent" >These additional ressources can be useful for further information:
     <ul class="itemize1">
     <li class="itemize">otbStereoRectificationGridGenerator otbBlockMatching</li></ul>
<!--l. 3640--><div class="crosslinks"><p class="noindent">[<a 
href="CookBooksu74.html" >next</a>] [<a 
href="CookBooksu72.html" >prev</a>] [<a 
href="CookBooksu72.html#tailCookBooksu72.html" >prev-tail</a>] [<a 
href="CookBooksu73.html" >front</a>] [<a 
href="CookBookse17.html#CookBooksu73.html" >up</a>] </p></div>
<!--l. 3640--><p class="noindent" ><a 
 id="tailCookBooksu73.html"></a>  
 <script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); </script> <script type="text/javascript"> try { var pageTracker = _gat._getTracker("UA-7072990-1"); pageTracker._trackPageview(); } catch(err) {}</script></body></html> 
